package task13;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/13 8:56
 * @description:
 */
public class yuan extends Shape{
  double r;
  public yuan(){

  }
  public yuan(double r) {
    this.r = r;
  }
  @Override
  public double area(){
    return 3.14*r*r;
  }

  @Override
  public String getName() {
    return "圆形";
  }

  @Override
  public void output(){
    System.out.println(getName()+"的面积是："+area());
  }
}
